<? global $cat, $cat1, $cat2, $lg, $products, $FullUrl; ?>

<div class="cleared reset-box"></div>
<div class="art-box art-sheet">
  <div class="art-box-body art-sheet-body">
    <div class="art-layout-wrapper">
      <div class="art-content-layout">
        <div class="art-content-layout-row">
          <div class="art-layout-cell art-content">
            <div class="art-box art-post">
              <div class="art-box-body art-post-body">
                <div class="art-post-inner art-article">
                  <? if (count($products)>0) { ?>
                  <div class="art-postcontent">
                    <div class="art-content-layout-wrapper layout-item-0">
                      <div class="art-content-layout layout-item-1">
                        <div class="art-content-layout-row">
                          <div class="art-layout-cell layout-item-2" style="width: 100%;">
                            <? for ($i=0; $i<count($products); $i++) { 
	  		$pro = $products[$i];
			$img = GetImage($pro['img']);
			$link = GetProductLinkFull($pro, $lg);
			$pro_name = $pro["name_$lg"];
			$pro_desc = $pro["descs_$lg"];
			$code = $pro["code"];
			$price = $pro["price"];
			$size = $pro["size"];
	  ?>
                            <a class="name" href="<?=$link?>"><img src="<?=$FullUrl.'/'.$img?>" alt.="Product #001" title=" Product #001 " height="130" width="199"></a> <a class="name" href="<?=$link?>">
                            <?=$pro_name?>
                            Mã Sản phẩm:<?=$code?>
                            <br/>
                            Giá: <?=isset($price)?number_format($price).' VNĐ':'Đang Cập Nhật'?>
                            <br/>
                            Kích thước: <?=$size?>
                            
                            <p ><a href="" onclick="location.href='<?php echo $FullUrl; ?>/index.php?do=cart&act=add&id=<?=$pro['id']; ?>&lg=<?=$lg?>&sl=1'" class="art-button">Đặt Mua</a></p>
                            <p ><a href="<?=$link?>" class="art-button">Xem chi tiết</a></p>
                            <?
		}
	  ?>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <? }?>
                  <div class="cleared"></div>
                </div>
                <div class="cleared"></div>
              </div>
            </div>
            <div class="cleared"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="cleared"></div>
    <div class="cleared"></div>
  </div>
</div>
